Repeat n Repeat var,from,to Repeat var,from,to,step In its first form, the command loops n times. In the second and third forms it sets var=from, and loops till var=to, incrementing it by step each time (step defaults to 1).